package com.design.pattern.bridge;

/**
 * Created by Administrator on 2016/5/18.
 */
public class Client {
    public static void main(String[] args) {
        //1. 创建具体的实现对象
        SMSMessage sms = new SMSMessage();
        //2. 使用系统短信发送
        CommonMessage commonMSG = new CommonMessage(sms);

        commonMSG.sendMessage("老板，我还有任务吗！","黄波");
        System.out.println("-----------Email发送紧急消息----------");
        EmailMessage email = new EmailMessage();
        UrgencyMessage urgencyMsg = new UrgencyMessage(email);
        urgencyMsg.sendMessage("老大，赶紧审批","王鹏");
    }
}
